<%@page import="cn.yunhe.model.News"%>
<%@page import="cn.yunhe.biz.NewsBizImpl"%>
<%@page import="cn.yunhe.biz.INewsBiz"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%
		request.setCharacterEncoding("UTF-8");
		String nnid=request.getParameter("nid");
		int nid=Integer.parseInt(nnid);
		
		INewsBiz newsBiz=new NewsBizImpl();
		News news= newsBiz.getNewsById(nid);
	%>
	<h2><%=news.getTitle() %></h2>
	<%=news.getTitle() %>&nbsp;&nbsp;&nbsp;写于&nbsp;&nbsp;<%=news.getWriteDate() %><br>
	
	<%
		if(news.getPic()!=null){
			
	%>
		<img alt="" src="pic/<%=news.getPic()%>">
	<%} %>
	<br><br>
	 <%=news.getContent()%>
</body>
</html>